window.require.config({
    baseUrl: 'javascripts/lib/',
    shim: {
        'backbone': {
            deps: ['underscore', 'jquery'],
            exports: 'Backbone'
        },
        'underscore': {
            exports: '_'
        },
        'jquery': {
            exports: '$'
        }
    },
    paths: {
        app: '../src',
        models: '../src/models',
        collection: '../src/collections',
        views: '../src/views'
    }
});

window.require(['app/app'], function (app) {
    'use strict';
    $('title').html('Todo list!');
    app.initialize();
});
